<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>usbpsu: xusbpsu_ch9.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="HTML_custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="xlogo_bg.gif"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">usbpsu
   </div>
   <div id="projectbrief">Xilinx SDK Drivers API Documentation</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('xusbpsu__ch9_8c.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">xusbpsu_ch9.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Overview</h2>
<div class="textblock"><pre>
MODIFICATION HISTORY:</pre><pre>Ver   Who  Date     Changes
<hr/>

1.0   sg   06/06/16 First release
1.1     vak  30/11/16 Addded DFU support</pre><pre></pre> </div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a8fae1ad6c97c621f7505be7bf84b7134"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xusbpsu__ch9_8c.html#a8fae1ad6c97c621f7505be7bf84b7134">XUSBPSU_REQ_REPLY_LEN</a>&#160;&#160;&#160;1024</td></tr>
<tr class="memdesc:a8fae1ad6c97c621f7505be7bf84b7134"><td class="mdescLeft">&#160;</td><td class="mdescRight">Max size of reply buffer.  <a href="#a8fae1ad6c97c621f7505be7bf84b7134">More...</a><br /></td></tr>
<tr class="separator:a8fae1ad6c97c621f7505be7bf84b7134"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:addda8203d21b62a8097490d69c46b7b3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xusbpsu__ch9_8c.html#addda8203d21b62a8097490d69c46b7b3">XUsbPsu_ClassReq</a> (struct <a class="el" href="struct_x_usb_psu.html">XUsbPsu</a> *InstancePtr, SetupPacket *SetupData)</td></tr>
<tr class="memdesc:addda8203d21b62a8097490d69c46b7b3"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function is class handler for Mass storage and is called when Setup packet received is for Class request(not Standard Device request)  <a href="#addda8203d21b62a8097490d69c46b7b3">More...</a><br /></td></tr>
<tr class="separator:addda8203d21b62a8097490d69c46b7b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a42957fc7142facc624489177e502a6a2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xusbpsu__ch9_8c.html#a42957fc7142facc624489177e502a6a2">XUsbPsu_Ch9Handler</a> (struct <a class="el" href="struct_x_usb_psu.html">XUsbPsu</a> *InstancePtr, SetupPacket *SetupData)</td></tr>
<tr class="memdesc:a42957fc7142facc624489177e502a6a2"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function handles a Setup Data packet from the host.  <a href="#a42957fc7142facc624489177e502a6a2">More...</a><br /></td></tr>
<tr class="separator:a42957fc7142facc624489177e502a6a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a8fae1ad6c97c621f7505be7bf84b7134"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8fae1ad6c97c621f7505be7bf84b7134">&#9670;&nbsp;</a></span>XUSBPSU_REQ_REPLY_LEN</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XUSBPSU_REQ_REPLY_LEN&#160;&#160;&#160;1024</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Max size of reply buffer. </p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="a42957fc7142facc624489177e502a6a2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a42957fc7142facc624489177e502a6a2">&#9670;&nbsp;</a></span>XUsbPsu_Ch9Handler()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XUsbPsu_Ch9Handler </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="struct_x_usb_psu.html">XUsbPsu</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SetupPacket *&#160;</td>
          <td class="paramname"><em>SetupData</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function handles a Setup Data packet from the host. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to <a class="el" href="struct_x_usb_psu.html" title="USB Device Controller representation. ">XUsbPsu</a> instance of the controller. </td></tr>
    <tr><td class="paramname">SetupData</td><td>is the structure containing the setup request.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><ul>
<li>XST_SUCCESS if the function is successful.</li>
<li>XST_FAILURE if an Error occured.</li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

</div>
</div>
<a id="addda8203d21b62a8097490d69c46b7b3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#addda8203d21b62a8097490d69c46b7b3">&#9670;&nbsp;</a></span>XUsbPsu_ClassReq()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XUsbPsu_ClassReq </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="struct_x_usb_psu.html">XUsbPsu</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SetupPacket *&#160;</td>
          <td class="paramname"><em>SetupData</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function is class handler for Mass storage and is called when Setup packet received is for Class request(not Standard Device request) </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is pointer to <a class="el" href="struct_x_usb_psu.html" title="USB Device Controller representation. ">XUsbPsu</a> instance. </td></tr>
    <tr><td class="paramname">SetupData</td><td>is pointer to SetupPacket received.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Copyright &copy; 2015 Xilinx Inc. All rights reserved.</li>
  </ul>
</div>
</body>
</html>
